//
//  UserDefaultsTools.h
//  
//
//  Created by  on 16/3/24.
//  Copyright © 2016年 . All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AESCrypt.h"

#define TOKEN_KEY @"TOKEN_KEY"
#define USERINFO_KEY @"userInfo"
#define SETTING @"setting"
#define MEDICINE_ALERT_TOOGLE @"medicine_alert_toogle" //服药提醒闹钟开关标识

@interface UserDefaultsTools : NSObject
/**
 *
 *  NSUserDefaults保存
 *
 *  @param value <#value description#>
 *  @param key   <#key description#>
 */
+(void)saveUserDefaultsObject:(id)value forKey:(NSString*)key;

+(id)getUserDefaultsForKey:(NSString*)key;

+(void)saveToken:(NSString*)token;

+(NSString*)getToken;

+(NSDictionary*)getTokenAndTimestamp;

+(void)deleteUserDefaultsForKey:(NSString*)key;
@end
